package com.hr.mes.mapper;

import com.hr.mes.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserRoleMapper {

    void addUserRole(UserRole userRole);

    void deleteUserRoleByUserId(Integer userId);

    void deleteUserRoleByRoleId(Integer roleId);

    List<UserRole> getUserRoleList(Integer userId);

}
